package test_net;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class GsonObject2 {

    /**
     * status : 200
     * msg : hahha
     * data : {"list_data":[{"id":78,"title":"testing1111111","address":"wahaha111","child_list":[{"id":1,"name":"aaa"},{"id":2,"name":"bbb"}]},{"id":79,"title":"testing122222","address":"wahaha2222","child_list":[{"id":11,"name":"cccc"},{"id":22,"name":"dddd"}]},{"id":90,"title":"testing33333","address":"wahaha333","child_list":[{"id":13,"name":"eeeeeee"},{"id":24,"name":"ffffff"}]}]}
     */
    @SerializedName("list_data")
    private List<ListDataBean> listData;

    public List<ListDataBean> getListData() {
        return listData;
    }

    public void setListData(List<ListDataBean> listData) {
        this.listData = listData;
    }

    public static class ListDataBean {
        /**
         * id : 78
         * title : testing1111111
         * address : wahaha111
         * child_list : [{"id":1,"name":"aaa"},{"id":2,"name":"bbb"}]
         */

        private int id;
        private String title;
        private String address;
        @SerializedName("child_list")
        private List<ChildListBean> childList;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public List<ChildListBean> getChildList() {
            return childList;
        }

        public void setChildList(List<ChildListBean> childList) {
            this.childList = childList;
        }

        public static class ChildListBean {
            /**
             * id : 1
             * name : aaa
             */

            private int id;
            private String name;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            @Override
            public String toString() {
                return "ChildListBean{" +
                        "id=" + id +
                        ", name='" + name + '\'' +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "ListDataBean{" +
                    "id=" + id +
                    ", title='" + title + '\'' +
                    ", address='" + address + '\'' +
                    ", childList=" + childList +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "GsonObject2{" +
                "listData=" + listData +
                '}';
    }
}
